A5Storage::SubContainer CopyItemTo Method
Syntax
.CopyItemTo as L (TargetContainer as A5Storage::SubContainer, ItemName as C)
Arguments
- TargetContainerA5Storage::SubContainer
The destination container where items are copied to.
- ItemNameCharacter
The item to copy.
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
Copies an item to another SubContainer.
Example
dim SubContainer as A5Storage::SubContainer = null_value() dim TargetSubContainer as A5Storage::SubContainer = null_value() CallResult = A5Storage::SubContainer::Open(SubContainer, "Provider='Disk';Container='c:\A5Webroot';", "logs") CallResult = A5Storage::SubContainer::Open(TargetSubContainer, "Provider='Disk';Container='c:\A5Webroot2';", "logs") ? CallResult.Success = .T. ? SubContainer.CopyItemTo(TargetSubContainer, "MyTargetPath/MyObject") = .T.